﻿/// <summary>
/// 单例页面父类
/// </summary>
/// <typeparam name="T">是将来具体的窗体类(子类)</typeparam>
public abstract class SingleForm<T> : Form where T : new()
{
    #region 单例
    private static T instance;
    public static T Instance
    {
        get
        {
            if (instance == null)
            {
                instance = new T();
            }

            return instance;
        }
    }
    #endregion 单例
}